package com.tiku.utils;

import com.tiku.entity.BaseBean;

import java.util.Date;

public class BeanUtil {


    public static void beforeInsert(BaseBean baseBean){
        baseBean.setCreateTime(new Date());
        baseBean.setCreateUser("admin");
    }

    public static void beforeUpdate(BaseBean baseBean){
        baseBean.setUpdateTime(new Date());
        baseBean.setUpdateUser("admin");
    }
}
